<?php
/**
 * @file
 * juna_basic_features.features.inc
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function juna_basic_features_ctools_plugin_api($module = NULL, $api = NULL) {
  if ($module == "strongarm" && $api == "strongarm") {
    return array("version" => "1");
  }
}

/**
 * Implements hook_image_default_styles().
 */
function juna_basic_features_image_default_styles() {
  $styles = array();

  // Exported image style: banner_style.
  $styles['banner_style'] = array(
    'label' => 'Banner Style',
    'effects' => array(
      1 => array(
        'name' => 'image_scale',
        'data' => array(
          'width' => 750,
          'height' => '',
          'upscale' => 0,
        ),
        'weight' => 1,
      ),
    ),
  );

  return $styles;
}

/**
 * Implements hook_node_info().
 */
function juna_basic_features_node_info() {
  $items = array(
    'ad_banner' => array(
      'name' => t('Ad Banner'),
      'base' => 'node_content',
      'description' => t('广告Banner'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'info_page' => array(
      'name' => t('Info Page'),
      'base' => 'node_content',
      'description' => t('规则或者信息页面的实体'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'product' => array(
      'name' => t('Product'),
      'base' => 'node_content',
      'description' => t('壹购商品'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'seller' => array(
      'name' => t('Seller'),
      'base' => 'node_content',
      'description' => t('商家实体'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'share_product' => array(
      'name' => t('Share Product'),
      'base' => 'node_content',
      'description' => t('享什么商品'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'sku_product' => array(
      'name' => t('SKU Product'),
      'base' => 'node_content',
      'description' => t('拥有SKU的实际产品'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'swingshare' => array(
      'name' => t('Swingshare Product'),
      'base' => 'node_content',
      'description' => t('摇享商品（将弃用)'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
    'yaoxiang_product' => array(
      'name' => t('Yaoxiang Product'),
      'base' => 'node_content',
      'description' => t('摇享商品-需要配合SKU产品使用，先创建SKU产品'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
  );
  drupal_alter('node_info', $items);
  return $items;
}
